package ch10_thread.thread;

/**
 * 同时继承及实现
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public class CreateBoth {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("java");
            }
        }) {
            @Override
            public void run() {
                System.out.println("vb");
            }
        }.start();
    }
}
